package cn.lyb.eurekaclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ClientController {
    @Value("${server.port}")
    String port;

    @GetMapping("/hello")
    public String sayHello(String name) {
        return port+":hello " + name;
    }
}
